package learn.d;

/**
 * 动物
 */
public class Animal {
    private String name;
    private String color;
    public Animal(){}
    public Animal(String name,String color){
        this.name = name;
        this.color= color;
    }
    public void introduction(){
        System.out.println("我的名字："+ this.getName()+ "，我的肤色：" + this.getColor());
    }

    public void live(){
        System.out.println("我生活地球");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
